﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using TongCheng.API.OpenAPI.Util;

namespace TongCheng.API.OpenAPI.Request
{
    [Serializable]
    public class TcBaseHotelRequest : ITcRequest
    {
        private HotelRequestHeader _header;

        public TcBaseHotelRequest()
        {
            _header = new HotelRequestHeader();
        }

        [XmlElement("header")]
        public HotelRequestHeader Header
        {
            get { return this._header; }
            set { this._header = value; }
        }

        public virtual void Validate()
        {
            _header.Validate();
        }

        public virtual string GetServerUrl()
        {
            return _header.ServerUrl;
        }
    }
}
